import axios from '@/common/config/axiosConfig'
export const queryAll = (params) => {
  return axios.get('/api/v1/orderStatistics/queryAll', { params })
}

export const queryAllByChannel = (params) => {
  return axios.get('/api/v1/orderStatistics/queryAllByChannel', { params })
}

export const queryAllByDay = (day) => {
  return axios.get('/api/v1/orderStatistics/queryAllByDay', { params: { day } })
}

export const homeStatistics = () => {
  return axios.get('/api/v1/order/homeStatistics')
}
